Skip to main content

Deployment

Production Build

npm run build command produces production builds.

Catalyst uses babel and Webpack to produce optimized builds.

The output goes inside build folder.


Self Hosting

Catalyst Apps can be deployed to any hosting provider which supports Node.js.

Ensure that your package.json has build and serve commands.

{
"scripts": {
"start": "catalyst start",
"build": "catalyst build",
"serve": "catalyst serve",
"devBuild": "catalyst devBuild",
"devServe": "catalyst devServe"
}
}

Then run npm run build to build your application and npm run serve to start the node server.

Node server will start on host DEV_SERVER_HOSTNAME and port APPLICATION_PORT mentioned in config/config.json. Assets will be served from PUBLIC_ASSET_PATH

The devBuild and devServe commands are akin to build and serve, differing only in that they serve your assets locally during development when not stored on a CDN.